TArrayIterator< T > Class Template Reference

Iterator for array template container. More...

#include <tarray.h>

Inheritance diagram for TArrayIterator< T >:
Inheritance graph
[legend]

Public Member Functions

 TArrayIterator (const TArrayBase< T > &arr)
 Iterator constructor.
virtual bool done () const
virtual T & next ()
virtual T & previous ()
virtual T & current () const
virtual void first ()
virtual void last ()
const TArrayBase< T > & array () const
 Return array reference.

Detailed Description

template<class T>
class Steinberg::TArrayIterator< T >

Iterator for array template container.

See also:
TArrayBase, TArray, TOrderedArray, TSortableArray

Constructor & Destructor Documentation

TArrayIterator ( const TArrayBase< T > &  arr  )  [inline]

Iterator constructor.


Member Function Documentation

bool done (  )  const [inline, virtual]

Check if end of container is reached.

"done" returns whether or not this iterator can advance any further.

Implements TIterator< T >.

T & next (  )  [inline, virtual]

Returns the current data and advances the iterator. postfix as in t = c++;.

"next" returns the current item in the array and advances the iterator to the next item.

Implements TIterator< T >.

T & previous (  )  [inline, virtual]

Returns the current data and backup. postfix as in t = c--;.

"previous" returns the current item in the array and decrements the iterator to the previous item.

Implements TIterator< T >.

T & current (  )  const [inline, virtual]

Returns the current data.

"current" returns the current array item.

Implements TIterator< T >.

void first (  )  [inline, virtual]

Move to first data.

"first" moves the iterator to the first item.

Implements TIterator< T >.

void last (  )  [inline, virtual]

Move to last data.

"last" moves the iterator to the last item.

Implements TIterator< T >.

const TArrayBase< T > & array (  )  const [inline]

Return array reference.

"array" returns a reference to the array being iterated.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Empty

Copyright ©2013 Steinberg Media Technologies GmbH. All Rights Reserved.